package edu.kjxy.demo0322;

import java.lang.reflect.Array;
import java.util.Arrays;

public class demo03 {

	public static void main(String[] args) {
		int[] a = {2, 4, 6, 8, 10};
		int[] b = new int[5];
		
		System.out.println(Arrays.toString(a));
		
		for (int i = 0; i < b.length; i++) {
			b[i] = a[i] * a[i];
		}
		System.out.println(Arrays.toString(b));
		
		int[] c = new int[a.length];
		for (int i = 0; i < c.length; i++) {
			c[i] = a[i] + b[i];
		}
		System.out.println(Arrays.toString(c));
	}

}
